home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
vsms111.zip
/
FINGER.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-12-12
|
2KB
|
49 lines
@ECHO OFF
IF %DOSTYPE%.==. GOTO KRAD
if %1.==plan. goto plan
IF %1.==remote. goto remote
if %1.==console. goto console
if %1.==. goto finger
ECHO Sorry, user %1 unknown. Valid users are console, remote.
ECHO finger plan to build a new plan file for you.
ECHO You must use lowercase.
GOTO END
:plan
ECHO Building new "plan" for %user%
IF EXIST \MXDOS\%USER%\PLAN DEL \MXDOS\%USER%\PLAN
ECHO Type I to start message, Control-Z on a blank line
ECHO and E to end message.
EDLIN \MXDOS\%USER%\PLAN
echo New plan done.
goto end
:finger
ECHO Login Name TTY Where
ECHO console Console User con console
ECHO remote Remote User p0 :0.0
goto end
:console
ECHO Login name: console In real life: Console User
ECHO Directory: /mxdos/console Shell: /command.com
ECHO On since bootup on console
IF EXIST \MXDOS\MAIL\CONSOLE.BOX ECHO New mail
IF NOT EXIST \MXDOS\MAIL\CONSOLE.BOX ECHO No mail
IF NOT EXIST \MXDOS\console\PLAN ECHO No plan.
if not exist \mxdos\console\plan goto end
IF EXIST \MXDOS\console\PLAN ECHO Plan:
IF EXIST \MXDOS\console\PLAN MORE<\MXDOS\console\PLAN
GOTO END
:remote
ECHO Login name: remote In real life: Remote User
ECHO Directory: /mxdos/remote Shell: /command.com
ECHO On since bootup on ttyp0
IF EXIST \MXDOS\MAIL\REMOTE.BOX ECHO New mail
IF NOT EXIST \MXDOS\MAIL\REMOTE.BOX ECHO No mail
IF NOT EXIST \MXDOS\REMOTE\PLAN ECHO No plan.
if not exist \mxdos\remote\plan goto end
IF EXIST \MXDOS\REMOTE\PLAN ECHO Plan:
IF EXIST \MXDOS\REMOTE\PLAN MORE<\MXDOS\REMOTE\PLAN
GOTO END
:KRAD
ECHO You are not running under MX-Multiuser DOS.
:END